const obj = {
  1: 222,
  2: 123,
  5: 888
}

const arr2 = Array.from({ length: 12 }).map((_, index) => {
  return (obj[index + 1] || null)
})

console.log(arr2)
